<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<div th:replace="common/top">

</div>

<div id="Content">
    <div id="Catalog">

        <div id="BackLink">
            <a th:href="@{/catalog/viewCategory?categoryId=}+${product.categoryId}">
                Return to <label th:text="${product.categoryId}">Category ID</label>
            </a>
        </div>

        <h2 th:text="${product.name}"></h2>

        <table>
            <tr>
                <th>Item ID</th>
                <th>Product ID</th>
                <th>Description</th>
                <th>List Price</th>
                <th>&nbsp;</th>
            </tr>

            <tr th:each="item:${itemList}">
                <td>
                    <a th:href="@{viewItem?itemId=}+${item.itemId}" th:text="${item.itemId}">itemId</a>
                </td>
                <td th:text="${item.product.productId}">productId</td>
                <td th:text="${item.attribute1}">attributed</td>
                <td th:text="'$'+${#numbers.formatDecimal(item.listPrice,1,2)}">Item List Price</td>
                <td>
                    <a th:href="@{addItemToCart?workingItemId=}+${item.itemId}">add to cart</a>
                </td>
            </tr>

        </table>

    </div>
</div>

<div th:replace="common/botton">

</div>

</body>
</html>